import { MessageBox  } from 'element-ui'

export default {
    confirm(msg) {
        return new Promise(function (resolve, reject) {
            MessageBox.confirm(
                msg,
                '确认',
                {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning',
                }
            ).then(() => {
                return resolve()
            }).catch(() => {
                
            })
        })
    }

} 
